package cn.sf.sufingadminprovider.dao;

import cn.sf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {


  public List<User> selectAdminInfoById(@Param("userRole") long userRole);

  public List<User> selectAdminInfoByType(@Param("roleType") long roleType);

  public List<User> selectAdminInfoByEmail(@Param("userEmail") String userEmail);

  public List<User> selectAdminInfoByPhone(@Param("userPhone") long userPhone);

  public int updateAdminInfoByUserId(User user);

  public int insertAdminInfo(User user);

  public int deleteAdminByUserId(long userId);
}
